
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/ehome/static/css/layui.css" media="all">
    <!--layui的js部分-->
    <script src="/ehome/static/layui.js"></script>
    <script src="/ehome/static/lib/jquery-3.1.1.min.js"></script>
</head>
<body>
<button id="click">click</button>

<script>
    layui.use(['layer','jquery'], function(){
        var layer = layui.layer;
        var $ = layui.jquery;

        $("#click").click(function (){
            layer.open({
                type: 2,
                content: ['addUser.html']
                //这里content是一个URL，如果你不想让iframe出现滚动条，你还可以content: ['http://sentsin.com', 'no']
            });
        })
    });
    $(function(){

    })
</script>
</body>
</html>